import QtQuick
import QtQuick.Layouts

import "../common"

import "./equipMenu"
import "./healthMenu"

DefaultSubUI{

    Row{
        id:row
        spacing: 30
        UIButton{
            text: "整备"
            width: 80
            height:30
            onClicked: {
                stack.currentIndex = 0
            }
        }
        UIButton{
            text:"健康"
            width: 80
            height:30
            onClicked: {
                stack.currentIndex = 1
            }
        }
    }




    Item{
        anchors{
            top:row.bottom
            topMargin: 20
            left:parent.left
            right:parent.right
            bottom: parent.bottom
        }

        StackLayout{
            id:stack

            anchors.fill: parent

            EquipMenu{

            }

            HelthMenu{

            }

        }
    }

}
